<template>
    <el-container class="container">
        <el-header>
            <el-menu
                    router="true"
                    :default-active="activeIndex"
                    class="el-menu-demo"
                    mode="horizontal"
                    @select="handleSelect"
                    background-color="#545c64"
                    text-color="#fff"
                    active-text-color="#ffd04b">
                <el-menu-item index="aticle">处理中心</el-menu-item>
                <el-menu-item index="2">处理中心</el-menu-item>
                <el-menu-item index="3">处理中心</el-menu-item>
                <el-menu-item index="4">处理中心</el-menu-item>
            </el-menu>
        </el-header>
        <el-main class="homes">
            <router-view/>
        </el-main>
    </el-container>
</template>

<script>
    export default {
        name: "home",
        data(){
            return{
                activeIndex: 'aticle',
            }
        },
        methods:{
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            }
        },
        mounted() {

        }
    }
</script>

<style scoped>
.container{
    height: 100%;
}
.homes{
    height: 100%;
}
</style>